package com.loveprogrammer.eternity.model.attack;

import com.loveprogrammer.eternity.enums.AttackTypeEnum;

/**
 * @version 1.0.0
 * @description: 攻击后结果
 * @author: eric
 * @date: 2022-12-09 17:45
 **/
public class AttackResult {

    public AttackResult(int harm) {
        this.harm = harm;
        this.message = "";
        this.attackType = AttackTypeEnum.NORMAL;
    }

    public AttackResult(String message, int harm) {
        this.message = message;
        this.harm = harm;
        this.attackType = AttackTypeEnum.NORMAL;
    }

    public AttackResult(String message, int harm, AttackTypeEnum attackType) {
        this.message = message;
        this.harm = harm;
        this.attackType = attackType;
    }

    private String message;

    private int harm;

    private AttackTypeEnum attackType;

    // 反弹伤害
    private int reboundHarm;

    // 反弹伤害类型
    private AttackTypeEnum reboundType;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getHarm() {
        return harm;
    }

    public void setHarm(int harm) {
        this.harm = harm;
    }

    public AttackTypeEnum getAttackType() {
        return attackType;
    }

    public void setAttackType(AttackTypeEnum attackType) {
        this.attackType = attackType;
    }

    public int getReboundHarm() {
        return reboundHarm;
    }

    public void setReboundHarm(int reboundHarm) {
        this.reboundHarm = reboundHarm;
    }

    public AttackTypeEnum getReboundType() {
        return reboundType;
    }

    public void setReboundType(AttackTypeEnum reboundType) {
        this.reboundType = reboundType;
    }
}
